/*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------*/
// pfdial.hpp - Interface for the PegFiniteDial class
//
// Author: Jim DeLisle
//
// Copyright (c) 1997-2000 Swell Software 
//              All Rights Reserved.
//
// Unauthorized redistribution of this source code, in whole or part,
// without the express written permission of Swell Software
// is strictly prohibited.
//
// Notes:
//
/*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------*/

#ifndef _PFDIAL_HPP_
#define _PFDIAL_HPP_

/*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------*/
class PegFiniteDial : public PegDial
{
    public:
        PegFiniteDial(const PegRect &Size, PEGINT MinAngle, 
                      PEGINT MaxAngle, PEGLONG MinValue, PEGLONG MaxValue,
                      PEGULONG Style = DS_STANDARDSTYLE);

        virtual ~PegFiniteDial();

        virtual void Draw(const PegRect &Invalid);
        virtual void SetLimits(PEGINT MinAngle, PEGINT MaxAngle,
                               PEGLONG MinValue, PEGLONG MaxValue);
    protected:
        virtual void CalcNeedlePos();
        virtual void DrawTicMarks();
        virtual PEGINT ValToAngle(PEGLONG Val);
};

#endif // _PFDIAL_HPP_


